package com.base.taskreports.reports.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.base.taskreports.reports.dao.jfs.TblChaccCommPriAcctInfDao;
import com.base.taskreports.reports.entiyt.jfs.TblChaccCommPriAcctInfEntity;
import com.base.taskreports.reports.entiyt.jfs.TblCqpntPointInFlowEntity;
import com.base.taskreports.reports.service.TblChaccCommPriAcctInfService;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 张玉涛
 * @since 2021-11-09
 */
@DS("jf-chacc")
@Service("tblChaccCommPriAcctInfService")
public class TblChaccCommPriAcctInfImpl extends ServiceImpl<TblChaccCommPriAcctInfDao, TblChaccCommPriAcctInfEntity> implements TblChaccCommPriAcctInfService {

	@Autowired
	private TblChaccCommPriAcctInfDao tblChaccCommPriAcctInfDao;
	
	@Override
	public List<TblChaccCommPriAcctInfEntity> selectSingleUserCurrency(
			List<TblCqpntPointInFlowEntity> selectFloatingRateOfNonMonetaryPoints) {
		// TODO Auto-generated method stub
		return tblChaccCommPriAcctInfDao.selectSingleUserCurrency(selectFloatingRateOfNonMonetaryPoints);
	}

	@Override
	public Integer countTblCqpntPointInFlow(String dateTime) {
		// TODO Auto-generated method stub
		return tblChaccCommPriAcctInfDao.countTblCqpntPointInFlow();
	}
	 // 单用户货币积分余额> N浮动比率y  //前50笔详情
	@Override
	public List<TblChaccCommPriAcctInfEntity> selectTheTopFiftySingleUserCurrencyScoreBalanceNFloatingRatio(
			List<TblCqpntPointInFlowEntity> selectFloatingRateOfNonMonetaryPoints) {
		// TODO Auto-generated method stub
		 return tblChaccCommPriAcctInfDao.selectTheTopFiftySingleUserCurrencyScoreBalanceNFloatingRatio(selectFloatingRateOfNonMonetaryPoints);
	}
	 // 单用户非货币积分余额> N浮动比率y  //前50笔详情
	@Override
	public List<TblChaccCommPriAcctInfEntity> selectTheTopFiftySingleUserNonCurrencyPointsBalanceNFloatingRatio(
			List<TblCqpntPointInFlowEntity> selectFloatingRateOfNonMonetaryPoints) {
		// TODO Auto-generated method stub
		return tblChaccCommPriAcctInfDao.selectTheTopFiftySingleUserCurrencyScoreBalanceNFloatingRatio(selectFloatingRateOfNonMonetaryPoints);
	}
	 // 积分余额为负数量			y	 //前50笔详情
	@Override
	public List<TblChaccCommPriAcctInfEntity> selectTheTopFiftyTheCreditBalanceNegativeQuantity(String dateTime) {
		// TODO Auto-generated method stub
		return tblChaccCommPriAcctInfDao.selectTheTopFiftyTheCreditBalanceNegativeQuantity(dateTime);
	}

}
